package cn.mdmm.entity.system;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.mybatis.annotation.Table;

@Table(pkId = "id",  tabName = "SYSTEM_USER",  notColumn={"token","userRoles"})
public class SysUser implements Serializable{

	private static final long serialVersionUID = 8221299618406979511L;

	//主键
	private Long id;

	//用户登录名
	private String userName; 
	
	/** 1总管理员，2管理员，3.用户，4游客*/
	private Integer userType;

	//用户状态 ，1启用2禁止
	private Integer userStatus; 

	//加密密码
	private String userPwd; 

	//创建时间
	private Date createTime; 

	//更新时间
	private Date updateTime; 

	//真实姓名
	private String realName; 

	//邮箱地址
	private String email; 

	//手机号
	private String phone; 

	//性别     1：男 ， 0：女
	private Integer sex; 

	/** 用户的登陆密钥*/
	private String token;
	
	/** 用户角色 */
	List<SysRole> userRoles = new ArrayList<>();
	
	/** 用户图像*/
	private String  headImgUrl;
	
	public Long  getId(){
		return this.id;
	}

	public void setId(Long id){
		this.id=id;
	}

	public String  getUserName(){
		return this.userName;
	}

	public void setUserName(String userName){
		this.userName = userName == null ? null : userName.trim();
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer  getUserStatus(){
		return this.userStatus;
	}

	public void setUserStatus(Integer userStatus){
		this.userStatus=userStatus;
	}

	public String  getUserPwd(){
		return this.userPwd;
	}

	public void setUserPwd(String userPwd){
		this.userPwd = userPwd == null ? null : userPwd.trim();
	}

	public Date  getCreateTime(){
		return this.createTime;
	}

	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date  getUpdateTime(){
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime){
		this.updateTime=updateTime;
	}

	public String  getRealName(){
		return this.realName;
	}

	public void setRealName(String realName){
		this.realName = realName == null ? null : realName.trim();
	}

	public String  getEmail(){
		return this.email;
	}

	public void setEmail(String email){
		this.email = email == null ? null : email.trim();
	}

	public String  getPhone(){
		return this.phone;
	}

	public void setPhone(String phone){
		this.phone = phone == null ? null : phone.trim();
	}

	public Integer  getSex(){
		return this.sex;
	}

	public void setSex(Integer sex){
		this.sex=sex;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getHeadImgUrl() {
		return headImgUrl;
	}

	public void setHeadImgUrl(String headImgUrl) {
		this.headImgUrl = headImgUrl;
	}

	public List<SysRole> getUserRoles() {
		return userRoles;
	}

	public void setUserRoles(List<SysRole> userRoles) {
		this.userRoles = userRoles;
	}
	
	
}
